package com.mdmedia.cms.action;


import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.mdmedia.cms.common.assist.UtilPath;

@Controller
@RequestMapping("/jump")
public class JumpController implements UtilPath {

	
	//               /path/jump/1/add
	@RequestMapping("/{pram}/{url}")
	public ModelAndView login(HttpServletResponse response,@PathVariable int pram,@PathVariable String url) {
		String path="";
		switch (pram) {
		case 1:
			path=path_user;
			break;
		
		default:
			break;
		}
		return new ModelAndView(path+url);     
	} 
	@RequestMapping("/test")
	public ModelAndView login(){
		return new ModelAndView("index");     
	}
	
	
	
}
